home *** CD-ROM | disk | FTP | other *** search
- STCU(3X) Last changed: 11-5-98
-
-
- NNAAMMEE
- ssttccuu - Routines that provide a compilation unit symbol table interface
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssyymmss..hh>>
-
- ""ppCCHHDDRRRR sstt__ccuuiinniitt((vvooiidd));;
-
- ""vvooiidd sstt__sseettcchhddrr((ppCCHHDDRRRR ppcchhddrr));;
-
- ""ppCCHHDDRRRR sstt__ccuurrrreennttppcchhddrr((vvooiidd));;
-
- ""vvooiidd sstt__ffrreeee((vvooiidd));;
-
- ""lloonngg sstt__eexxttaadddd((lloonngg iissss,, lloonngg vvaalluuee,, lloonngg sstt,, lloonngg sscc,, lloonngg iinnddeexx));;
-
- ""ppEEXXTTRR sstt__ppeexxtt__iieexxtt((lloonngg iieexxtt));;
-
- ""ppEEXXTTRR sstt__ppeexxtt__rrnnddxx((RRNNDDXXRR rrnnddxx));;
-
- ""lloonngg sstt__iieexxttmmaaxx((vvooiidd));;
-
- ""lloonngg sstt__eexxttssttrraadddd((cchhaarr **ssttrr));;
-
- ""cchhaarr **sstt__ssttrr__eexxttiissss((lloonngg iissss));;
-
- ""lloonngg sstt__iiddnn__iinnddeexx__ffeexxtt((lloonngg iinnddeexx,, lloonngg ffeexxtt));;
-
- ""lloonngg sstt__iiddnn__rrnnddxx((RRNNDDXXRR rrnnddxx));;
-
- ""ppRRNNDDXXRR sstt__ppddnn__iiddnn((lloonngg iiddnn));;
-
- ""RRNNDDXXRR sstt__rrnnddxx__iiddnn((lloonngg iiddnn));;
-
- ""vvooiidd sstt__sseettiiddnn((lloonngg iiddnnddeesstt,, lloonngg iiddnnssrrcc));;
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems (o32 ABI only)
-
- DDEESSCCRRIIPPTTIIOONN
- The ssttccuu routines provide an interface to objects that occur once per
- object rather than once per file descriptor (for example, external
- symbols, strings, and dense numbers). The routines provide access to
- the current cchhddrr (compile time hdr), which represents the symbol table
- in running processes with pointers to symbol table sections rather
- than indices and offsets used in the disk file representation.
-
- A new symbol table can be created with sstt__ccuuiinniitt. This routine
- creates and initializes a CCHHDDRRRR (see <<ccmmppllrrss//ssttssuuppppoorrtt..hh>>). The CCHHDDRRRR
- is the current cchhddrr and is used in all later calls. NNOOTTEE: A cchhddrr can
- also be created with the read routines [see ssttiioo(3x)]. The 22sstt__ccuuiinniitt
- routine returns a pointer to the new CCHHDDRRRR record.
-
- _s_t__c_u_r_r_e_n_t_c_h_d_r
- Returns a pointer to the current cchhddrr.
-
- _s_t__s_e_t_c_h_d_r
- Sets the current cchhddrr to the _p_c_h_d_r argument and sets the per
- file structures to reflect a change in symbol tables.
-
- _s_t__f_r_e_e Frees all constituent structures associated with the current
- cchhddrr.
-
- _s_t__e_x_t_a_d_d
- Lets you add to the externals table. It returns the index to
- the new external for future reference and use. The _i_f_d field
- for the external is filled in by the current file [see
- ssttffdd(3)]. For more details on the parameters, see <<ssyymm..hh>>.
-
- _s_t__p_e_x_t__i_e_x_t
- _s_t__p_e_x_t__r_n_d_x
- Returns pointers to the external, given a index referencing
- them. The latter routine requires a relative index where the
- _i_n_d_e_x field should be the index in external symbols and the
- _r_f_d field should be the constant SSTT__EEXXTTIIFFDD.
-
- NNOOTTEE: The externals contain the same structure as symbols (see the
- SSYYMMRR and EEXXTTRR definitions).
-
- _s_t__i_e_x_t_m_a_x
- Returns the current number of entries in the external symbol
- table.
-
- The iissss field in external symbols (the index into string space) must
- point into external string space.
-
- _s_t__e_x_t_s_t_r_a_d_d
- Adds a null-terminated string to the external string space and
- returns its index.
-
- _s_t__s_t_r__e_x_t_i_s_s
- Converts that index into a pointer to the external string.
-
- The dense number table provides a convenience to the code optimizer,
- generator, and assembler. This table lets them reference symbols from
- different files and externals with unique densely packed numbers.
-
- _s_t__i_d_n__i_n_d_e_x__f_e_x_t
- Returns a new dense number table index, given an index into
- the symbol table of the current file (or if _f_e_x_t is set, the
- externals table).
-
- _s_t__i_d_n__r_n_d_x
- Returns a new dense number, but expects a RRNNDDXXRR (see <<ssyymm..hh>>)
- to specify both the file index and the symbol index rather
- than implying the file index from the current file. The RRNNDDXXRR
- contains two fields: an index into the externals table and a
- file index (rrssyymmss can point into the symbol table, as well).
- The file index is SSTT__EEXXTTIIFFDD (see <<ccmmppllrrss//ssttssuuppppoorrtt..hh>>) for
- externals.
-
- _s_t__r_n_d_x__i_d_n
- Returns a RRNNDDXX, given an index into the dense number table.
-
- _s_t__p_d_n__i_d_n
- Returns a pointer to the RRNNDDXXRR index by the _i_d_n_i argument.
-
- The programs must be loaded with the object file access routine
- library lliibbmmlldd..aa.
-
- SSEEEE AALLSSOO
- ssttffee(3x), ssttffdd(3x)
-
- This man page is available only online.
-
-